package com.blog.personalblog.service;

import com.blog.personalblog.bo.ArticleBO;
import com.blog.personalblog.bo.ArticleInsertBO;
import com.blog.personalblog.entity.Article;
import com.blog.personalblog.vo.ArticleVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface ArticleService {
    void init();

    List<Article> getArticlePage(ArticleBO articleBO);

    void insertOrUpdateArticle(ArticleInsertBO bo);

    void updateArticle(Article article);

    void deleteArticle(Integer articleId);

    ArticleVO findById(Integer articleId);

    String uploadFile(MultipartFile file);

    List<Article> getAll();
}
